import request from '@/utils/request'

export const getAccountListService = (params) => request.get('admin/account', { params })

export const changeStatusService = (idUser, status) =>
  request.patch(`/admin/account/status/${idUser}/${status}`)

export const resetPwdService = (idUser) => request.patch(`/admin/account/reset/${idUser}`)

export const editAccountService = (idUser, roleId) =>
  request.patch(`/admin/account/role/${idUser}/${roleId}`)
